/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "SYS_USERS")
@NamedQueries({
    @NamedQuery(name = "SysUsers.findAll", query = "SELECT s FROM SysUsers s"),
    @NamedQuery(name = "SysUsers.findBySysFldorder", query = "SELECT s FROM SysUsers s WHERE s.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "SysUsers.findBySysGuid", query = "SELECT s FROM SysUsers s WHERE s.sysGuid = :sysGuid"),
    @NamedQuery(name = "SysUsers.findBySysState", query = "SELECT s FROM SysUsers s WHERE s.sysState = :sysState"),
    @NamedQuery(name = "SysUsers.findBySysRev", query = "SELECT s FROM SysUsers s WHERE s.sysRev = :sysRev"),
    @NamedQuery(name = "SysUsers.findBySysCreated", query = "SELECT s FROM SysUsers s WHERE s.sysCreated = :sysCreated"),
    @NamedQuery(name = "SysUsers.findBySysUpdated", query = "SELECT s FROM SysUsers s WHERE s.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "SysUsers.findBySysCreator", query = "SELECT s FROM SysUsers s WHERE s.sysCreator = :sysCreator"),
    @NamedQuery(name = "SysUsers.findBySysUser", query = "SELECT s FROM SysUsers s WHERE s.sysUser = :sysUser"),
    @NamedQuery(name = "SysUsers.findBySysGuidfk", query = "SELECT s FROM SysUsers s WHERE s.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "SysUsers.findBySysParentguid", query = "SELECT s FROM SysUsers s WHERE s.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "SysUsers.findByLogin", query = "SELECT s FROM SysUsers s WHERE s.login = :login"),
    @NamedQuery(name = "SysUsers.findByPasswd", query = "SELECT s FROM SysUsers s WHERE s.passwd = :passwd"),
    @NamedQuery(name = "SysUsers.findByBlocked", query = "SELECT s FROM SysUsers s WHERE s.blocked = :blocked"),
    @NamedQuery(name = "SysUsers.findByUsrtype", query = "SELECT s FROM SysUsers s WHERE s.usrtype = :usrtype"),
    @NamedQuery(name = "SysUsers.findByName", query = "SELECT s FROM SysUsers s WHERE s.name = :name"),
    @NamedQuery(name = "SysUsers.findByUrl", query = "SELECT s FROM SysUsers s WHERE s.url = :url"),
    @NamedQuery(name = "SysUsers.findByDbname", query = "SELECT s FROM SysUsers s WHERE s.dbname = :dbname"),
    @NamedQuery(name = "SysUsers.findByRemotelogin", query = "SELECT s FROM SysUsers s WHERE s.remotelogin = :remotelogin"),
    @NamedQuery(name = "SysUsers.findByRemotepasswd", query = "SELECT s FROM SysUsers s WHERE s.remotepasswd = :remotepasswd"),
    @NamedQuery(name = "SysUsers.findByLockimport", query = "SELECT s FROM SysUsers s WHERE s.lockimport = :lockimport"),
    @NamedQuery(name = "SysUsers.findByLockexport", query = "SELECT s FROM SysUsers s WHERE s.lockexport = :lockexport"),
    @NamedQuery(name = "SysUsers.findByLockconnect", query = "SELECT s FROM SysUsers s WHERE s.lockconnect = :lockconnect")})
public class SysUsers implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "LOGIN")
    private String login;
    @Column(name = "PASSWD")
    private String passwd;
    @Column(name = "BLOCKED")
    private Integer blocked;
    @Lob
    @Column(name = "SETTINGS")
    private String settings;
    @Column(name = "USRTYPE")
    private String usrtype;
    @Column(name = "NAME")
    private String name;
    @Column(name = "URL")
    private String url;
    @Column(name = "DBNAME")
    private String dbname;
    @Column(name = "REMOTELOGIN")
    private String remotelogin;
    @Column(name = "REMOTEPASSWD")
    private String remotepasswd;
    @Lob
    @Column(name = "WEBSETTINGS")
    private String websettings;
    @Column(name = "LOCKIMPORT")
    private Integer lockimport;
    @Column(name = "LOCKEXPORT")
    private Integer lockexport;
    @Column(name = "LOCKCONNECT")
    private Integer lockconnect;

    public SysUsers() {
    }

    public SysUsers(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public Integer getBlocked() {
        return blocked;
    }

    public void setBlocked(Integer blocked) {
        this.blocked = blocked;
    }

    public String getSettings() {
        return settings;
    }

    public void setSettings(String settings) {
        this.settings = settings;
    }

    public String getUsrtype() {
        return usrtype;
    }

    public void setUsrtype(String usrtype) {
        this.usrtype = usrtype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDbname() {
        return dbname;
    }

    public void setDbname(String dbname) {
        this.dbname = dbname;
    }

    public String getRemotelogin() {
        return remotelogin;
    }

    public void setRemotelogin(String remotelogin) {
        this.remotelogin = remotelogin;
    }

    public String getRemotepasswd() {
        return remotepasswd;
    }

    public void setRemotepasswd(String remotepasswd) {
        this.remotepasswd = remotepasswd;
    }

    public String getWebsettings() {
        return websettings;
    }

    public void setWebsettings(String websettings) {
        this.websettings = websettings;
    }

    public Integer getLockimport() {
        return lockimport;
    }

    public void setLockimport(Integer lockimport) {
        this.lockimport = lockimport;
    }

    public Integer getLockexport() {
        return lockexport;
    }

    public void setLockexport(Integer lockexport) {
        this.lockexport = lockexport;
    }

    public Integer getLockconnect() {
        return lockconnect;
    }

    public void setLockconnect(Integer lockconnect) {
        this.lockconnect = lockconnect;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SysUsers)) {
            return false;
        }
        SysUsers other = (SysUsers) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.SysUsers[ sysGuid=" + sysGuid + " ]";
    }
    
}
